<template>
    <div class="demo">
        <button @click="test">测试</button>
        <!-- <button @click="haha">哈哈</button> -->
    </div>
</template>
<script>
    export default {
        name: 'SchoolN',
        data() {
            return {
                name: '传统传送'
            }
        },
        methods: {
            test() {
                this.$bus.$emit('hello', 666)
            }
        },
    }
</script>

<style scoped>
    .demo {
        background-color: orange;
    }
</style>